﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_QC_IPQC_ORDER_ITEM
// * CreateDate    : 2012/5/5 19:02:09
// * Creater       : CodeSmith
// * LastChangeDate: 2012/5/5 19:02:09
// * LastChanger   : 2012/5/5 19:02:09
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class QcIpqcOrderItemTable : TableInfo
    {
        public const string C_TableName = "QC_IPQC_ORDER_ITEM";

        public const string C_ORDER_ITEM_ID = "ORDER_ITEM_ID";
        public const string C_ORDER_ID = "ORDER_ID";
        public const string C_QTY = "QTY";
        public const string C_NG_DESCRIPTION = "NG_DESCRIPTION";
        public const string C_REMARK = "REMARK";
        public const string C_APPROVE_RESULT = "APPROVE_RESULT";

        public QcIpqcOrderItemTable()
        {
            _tableName = "QC_IPQC_ORDER_ITEM";
        }

        protected static QcIpqcOrderItemTable _current;
        public static QcIpqcOrderItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new QcIpqcOrderItemTable();

            _current.Add(C_ORDER_ITEM_ID, new ColumnInfo(C_ORDER_ITEM_ID, "OrderItemId", true, typeof(string)));
            _current.Add(C_ORDER_ID, new ColumnInfo(C_ORDER_ID, "OrderId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_NG_DESCRIPTION, new ColumnInfo(C_NG_DESCRIPTION, "NgDescription", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_APPROVE_RESULT, new ColumnInfo(C_APPROVE_RESULT, "ApproveResult", false, typeof(int)));

        }

        public ColumnInfo ORDER_ITEM_ID
        {
            get { return this[C_ORDER_ITEM_ID]; }
        }

        public ColumnInfo ORDER_ID
        {
            get { return this[C_ORDER_ID]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo NG_DESCRIPTION
        {
            get { return this[C_NG_DESCRIPTION]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo APPROVE_RESULT
        {
            get { return this[C_APPROVE_RESULT]; }
        }



    }
}

